package fishBids.group3.common;

import es.upm.agents.ontology.ProductType;

public class Constants {
	
	public static final String AUCTIONEER = "auctioneer";
	public static final String REGISTER = "register";
	public final static String BANK = "bank";
	public final static String SELL_PRODUCT = "sellProduct";
	public static final String GET_PRICE = "getPrice";
	public final static String MARKET = "market";
	public static final String PRICE_VARIATED = "priceVariated";
	public static final String ITEM_CANCELLED = "itemCancelled";
	public static final String NOTIFY_WINNERS = "notifyWinner";
	public static final String BID = "bid";
	public static final String AUCTION_OVER = "auctionOver";
	public static final String GET_MONEY = "getMoney";
	public static final String GET_AMOUNT = "getAmount";
	
	public static final ProductType SALMON_TYPE = new ProductType();
	public static final ProductType TUNA_TYPE = new ProductType();
	public static final ProductType CALAMARI_TYPE = new ProductType();
	public static final ProductType PRAWN_TYPE = new ProductType();
	
	public static final String tuna = "tuna";
	public static final String salmon = "salmon";
	public static final String calamari = "calamari";
	public static final String prawn = "prawn";
	
	//Internal protocols
	public static final String CREATE_ACCOUNT = "createaccount";
	public static final String BUY_PRODUCT = "buyProduct";
	
	//Properties file
	public static final String PROPERTIES_FILE = "config/config.properties";
	public static final String INITIAL_MONEY = "initial.money";
	public static final String DIMINISH_TIME = "diminish.time";
	public static final String AMOUNT_DECREASED = "amount.decreased";
	public static final String REGISTERING_TIME = "registering.time";
	
	public static final String INITIAL_CALAMARI = "price.calamari";
	public static final String INITIAL_PRAWN = "price.prawn";
	public static final String INITIAL_SALMON = "price.salmon";
	public static final String INITIAL_TUNA = "price.tuna";
	public static final double DECREASE_LOWER_LIMIT = 0.05;
	public static final double DECREASE_UPPER_LIMIT = 0.25;
	public static final String SELL_PRODUCT_NO_PRICE_VARIATION = "sellProductNoPriceVariation";
	public static final double INCREASE_LOWER_LIMIT = 0.05;
	public static final double INCREASE_UPPER_LIMIT = 0.20;
	

	static {
		
		SALMON_TYPE.setType(ProductType.SALMON);
		TUNA_TYPE.setType(ProductType.TUNA);
		CALAMARI_TYPE.setType(ProductType.CALAMARI);
		PRAWN_TYPE.setType(ProductType.PRAWN);
		
	}
	
}
